/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const shopRouter = {
  path: '/shop',
  component: Layout,
  name: '店铺',
  meta: {
    title: '店铺',
    subtitle:'店铺',
    icon: 'shop'
  },
  children: [
    // 模拟三级路由
    {
      path: '',
      component: Layout,
      name: '用户权限',
      meta: { title: '用户权限', subtitle: '权限', icon: 'menu_shop'},
      childrens: [
        {
          path: '/sysEmployee/list',
          meta: { title: '员工管理' ,subtitle:'员工',icon: 'menu_sysEmployee',permissions:['sysEmployee.query']}
        },
        {
          path: '/sysRole/list',
          meta: { title: '角色管理' ,subtitle:'角色',icon: 'menu_sysRole',permissions:['sysRole.query']}
        },
        {
          path: '/sysUser/list',
          meta: { title: '用户权限' ,subtitle:'权限',icon: 'menu_sysUser',permissions:['sysUser.query']}
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '资料设置',
      meta: { title: '资料设置', subtitle: '资料', icon: 'menu_shop'},
      childrens: [
        // {
        //   path: '/riderPath/riderPath',
        //   meta: { title: '骑手路径', subtitle:'店铺',icon: 'menu_sysSetUp',permissions:['parameter.query'] }
        // },
        {
          path: '/sysSetUp/index',
          meta: { title: '店铺设置', subtitle:'店铺',icon: 'menu_sysSetUp',permissions:['parameter.query'] }
        },
        {
          path: '/shop/list',
          meta: { title: '门店管理' ,subtitle:'门店',icon: 'menu_shop', permissions:['shop.query']},
        },
        // {
        //   path: '/car/list',
        //   meta: { title: '车辆管理',subtitle:'车辆', icon: 'menu_community', permissions: ['car.query'] }
        // },
        // {
        //   path: '/shippingLine/list',
        //   meta: { title: '送货线路',subtitle:'线路', icon: 'menu_community', permissions: ['shippingLine.query'] }
        // },
        {
          path: '/mapLine/list',
          meta: { title: '配送区域',subtitle:'区域', icon: 'menu_supplier',permissions:['mapLine.query']}
        },
        {
          path: '/article/list',
          meta: {title: '图文发布' ,subtitle:'文章',icon:'menu_article',permissions:['article.query']}
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '商城装修',
      meta: { title: '商城装修', subtitle: '商城', icon: 'menu_shop'},
      childrens: [
        {
          path: '/tag/list',
          meta: {title: '标签设置' ,subtitle:'标签',icon:'menu_tag',permissions:['tag.query']}
        },
        {
          path:'/designer/list',
          meta: {title: '页面设计' ,subtitle:'页面',icon:'menu_desc',permissions:['designer.query']}
        },
        {
          path: '/ad/list',
          meta: {title: '广告管理' ,subtitle:'广告',icon:'menu_ad',permissions:['ad.query']}
        },
        {
          path:'/navigation/list',
          meta: {title: '导航管理' ,subtitle:'导航',icon:'menu_navigation',permissions:['navigation.query']}
        },

      ]
    },


    // 注册路由
    {
      path: '/car/list',
      component: () => import('@/views/car/list'),
      name: 'car-list',
      meta: { title: '车辆管理',subtitle:'车辆', icon: 'menu_community', permissions: ['car.query'] },
      hidden: true
    },
    {
      path: '/car/add',
      component: () => import('@/views/car/add'),
      name: 'car-add',
      meta: { title: '新增车辆', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/car/edit',
      component: () => import('@/views/car/edit'),
      name: 'car-edit',
      meta: { title: '修改车辆', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/shippingLine/list',
      component: () => import('@/views/shippingLine/list'),
      name: 'shippingLine-list',
      meta: { title: '送货线路',subtitle:'线路', icon: 'menu_community', permissions: ['shippingLine.query'] },
      hidden: true
    },
    {
      path: '/shippingLine/add',
      component: () => import('@/views/shippingLine/add'),
      name: 'shippingLine-add',
      meta: { title: '新增送货线路', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/shippingLine/edit',
      component: () => import('@/views/shippingLine/edit'),
      name: 'shippingLine-edit',
      meta: { title: '修改送货线路', icon: 'menu_community' },
      hidden: true
    },
    {
      path: '/mapLine/list',
      component: () => import('@/views/mapLine/list'),
      name: 'mapLine-list',
      meta: { title: '区域设置',subtitle:'区域', icon: 'menu_supplier',permissions:['mapLine.query'] },
      hidden: true
    },
    {
      path: '/mapLine/add',
      component: () => import('@/views/mapLine/add'),
      name: 'mapLine-add',
      meta: { title: '新增围栏', icon: 'menu_supplier' },
      hidden: true
    },
    {
      path: '/mapLine/edit',
      component: () => import('@/views/mapLine/edit'),
      name: 'mapLine-edit',
      meta: { title: '修改围栏', icon: 'menu_supplier' },
      hidden: true
    },
    {
      path: '/sysOffice/list',
      component: () => import('@/views/sysOffice/list'),
      name: 'sysOffice-list',
      meta: { title: '部门资料' ,subtitle:'部门',icon: 'menu_sysOffice',permissions:['sysOffice.query']},
      hidden: true
    },
    {
      path: '/sysOffice/add',
      component: () => import('@/views/sysOffice/add'),
      name: 'sysOffice-add',
      meta: { title: '新增部门' ,icon: 'menu_sysOffice'},
      hidden: true
    },
    {
      path: '/sysOffice/edit',
      component: () => import('@/views/sysOffice/edit'),
      name: 'sysOffice-edit',
      meta: { title: '修改部门' ,icon: 'menu_sysOffice', noCache:true},
      hidden: true
    },
    {
      path: '/sysPost/list',
      component: () => import('@/views/sysPost/list'),
      name: 'sysPost-list',
      meta: { title: '岗位管理' ,subtitle:'岗位',icon: 'menu_sysPost',permissions:['sysPost.query']},
      hidden: true
    },
    {
      path: '/sysPost/add',
      component: () => import('@/views/sysPost/add'),
      name: 'sysPost-add',
      meta: { title: '新增岗位' ,icon: 'menu_sysPost'},
      hidden: true
    },
    {
      path: '/sysPost/edit',
      component: () => import('@/views/sysPost/edit'),
      name: 'sysPost-edit',
      meta: { title: '修改岗位' ,icon: 'menu_sysPost'},
      hidden: true
    },
    {
      path: '/sysEmployee/list',
      component: () => import('@/views/sysEmployee/list'),
      name: 'sysEmployee-list',
      meta: { title: '员工管理' ,subtitle:'员工',icon: 'menu_sysEmployee',permissions:['sysEmployee.query']},
      hidden: true
    },
    {
      path: '/sysEmployee/add',
      component: () => import('@/views/sysEmployee/add'),
      name: 'sysEmployee-add',
      meta: { title: '新增员工' ,icon: 'menu_sysEmployee'},
      hidden: true
    },
    {
      path: '/sysEmployee/edit',
      component: () => import('@/views/sysEmployee/edit'),
      name: 'sysEmployee-edit',
      meta: { title: '修改员工' ,icon: 'menu_sysEmployee'},
      hidden: true
    },
    {
      path: '/sysRole/list',
      component: () => import('@/views/sysRole/list'),
      name: 'sysRole-list',
      meta: { title: '角色管理' ,subtitle:'角色',icon: 'menu_sysRole',permissions:['sysRole.query']},
      hidden: true
    },
    {
      path: '/sysUser/list',
      component: () => import('@/views/sysUser/list'),
      name: 'sysUser-list',
      meta: { title: '用户权限' ,subtitle:'权限',icon: 'menu_sysUser',permissions:['sysUser.query']},
      hidden: true
    },
    {
	    path: '/sysSetUp/index',
	    component: () => import('@/views/sysSetUp/index'),
	    name: 'sysSetUp-index',
	    meta: { title: '店铺设置', subtitle:'店铺',icon: 'menu_sysSetUp',permissions:['parameter.query'] },
      hidden: true
	  },
    {
      path: '/riderPath/riderPath',
      component: () => import('@/views/riderPath/riderPath'),
      name: 'sysSetUp-index',
      meta: { title: '骑手路径', subtitle:'路径',icon: 'menu_sysSetUp',permissions:['parameter.query'] },
      hidden: true
    },
    {
      path: '/shop/list',
      component: () => import('@/views/shop/list'),
      name: 'shop-list',
      meta: { title: '门店管理' ,subtitle:'门店',icon: 'menu_shop', permissions:['shop.query']},
      hidden: true
    },
    {
      path: '/shop/add',
      component: () => import('@/views/shop/add'),
      name: 'shop-add',
      meta: { title: '新增门店' ,icon: 'menu_shop', permissions:['shop.add']},
      hidden: true
    },
    {
      path: '/shop/edit',
      component: () => import('@/views/shop/edit'),
      name: 'shop-edit',
      meta: { title: '修改门店' ,icon: 'menu_shop', permissions:['shop.edit']},
      hidden: true
    },
    {
      path: '/article/list',
      component: () => import('@/views/article/list'),
      name: 'article-list',
      meta: {title: '图文发布' ,subtitle:'文章',icon:'menu_article',permissions:['article.query']},
      hidden: true
    },
    {
      path: '/article/add',
      component: () => import('@/views/article/add'),
      name: 'article-add',
      meta: {title: '新增图文' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/article/edit',
      component: () => import('@/views/article/edit'),
      name: 'article-edit',
      meta: {title: '修改图文' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/ad/list',
      component: () => import('@/views/ad/list'),
      name: 'ad-list',
      meta: {title: '广告管理' ,subtitle:'广告',icon:'menu_ad',permissions:['ad.query']},
      hidden: true
    },
    {
      path:'/navigation/list',
      component: () => import('@/views/navigation/list'),
      name: 'navigation-list',
      meta: {title: '导航设置' ,subtitle:'导航',icon:'menu_navigation',permissions:['navigation.query']},
      hidden: true
    },
    {
      path:'/designer/index',
      component: () => import('@/views/designer/index'),
      name: 'designer-index',
      meta: {title: '页面设计' ,icon:'menu_desc'},
      hidden: true
    },
    {
      path:'/designer/list',
      component: () => import('@/views/designer/list'),
      name: 'designer-list',
      meta: {title: '页面设计' ,subtitle:'页面',icon:'menu_desc'},
      hidden: true
    },
    {
      path:'/designer/add',
      component: () => import('@/views/designer/add'),
      name: 'designer-add',
      meta: {title: '新增页面管理' ,icon:'menu_desc'},
      hidden: true
    },
    {
      path:'/designer/edit',
      component: () => import('@/views/designer/edit'),
      name: 'designer-edit',
      meta: {title: '修改页面管理' ,icon:'menu_desc'},
      hidden: true
    },
    {
      path: '/tag/list',
      component: () => import('@/views/tag/list'),
      name: 'tag-list',
      meta: {title: '标签设置' ,subtitle:'标签',icon:'menu_tag',permissions:['tag.query']},
      hidden: true
    },

  ]
}
export default shopRouter
